From: Nick Roberts Date: Tue, 8 Jan 2008 01:59:29 +0000 (+0000) Subject: (gdb-var-list-children-1): Put varnum in X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18855^2~823 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bc676c584011cdadedab6bf469bfc072385f2b68;p=emacs.git (gdb-var-list-children-1): Put varnum in quotes in case of spaces, e.g. STL containers (not pretty). --- diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 657e8531278..ef11668f022 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -3484,9 +3484,9 @@ is set in them." (gdb-enqueue-input (list (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) - (concat "server interpreter mi \"-var-list-children --all-values " - varnum "\"\n") - (concat "-var-list-children --all-values " varnum "\n")) + (concat "server interpreter mi \"-var-list-children --all-values \\\"" + varnum "\\\"\"\n") + (concat "-var-list-children --all-values \"" varnum "\"\n")) `(lambda () (gdb-var-list-children-handler-1 ,varnum))))) (defconst gdb-var-list-children-regexp-1